﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace WPF.TreeView
{
    public partial class StepViewModel : ObservableObject
    {
        [ObservableProperty]
        string _description;
        [ObservableProperty]
        double _depth;
        [ObservableProperty]
        string _icon;
        [ObservableProperty]
        bool _isRunning;
        [ObservableProperty]
        ObservableCollection<StepViewModel> _children;
        [ObservableProperty]
        DateTime _startTime;
        [ObservableProperty]
        DateTime _endTime;
        [ObservableProperty]
        double _stepTime;
        [ObservableProperty]
        bool _prepare2Run;
        [ObservableProperty]
        bool _isErr;
        [ObservableProperty]
        bool _isCompileErr;

        public StepViewModel Parent { get; set; }
    }
}
